
body {
  margin: 0;
  padding: 0;
  background-color: #eee;
}

#mask {
  width: 100%;
  height: 100%;
  background-color: rgb(0 0 0 / 75%);
  position: fixed;
  z-index: 999;
  text-align: center;
  overflow: hidden;
}
.loadingText {
  margin-top: 45vh;
  color: white;
}
.loading {
  margin: 0;
  width: 100px;
  height: 10px;
  display: inline-block;
  border-radius: 20px;
  border: 1px solid white;
  overflow: hidden;
}

.loading>div {
  width: 10px;
  height: 100%;
  background-color: #15c162;
  border-radius: 20px;
  animation: loadAnimation 1s infinite alternate linear;
}

@keyframes loadAnimation {
  from{
  }
  to {
    margin-left: 90px;
  }
}

.canvas-box {
  width: 90%;
  height: calc(100vh - 60px) ;
  margin: 0 auto;
  overflow: hidden;
  padding: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

#photoScale {
  width: 40px;
}

#canvas {
  box-shadow: 0 0 26px darkgrey;
  transition: 500ms all;
}
#imgCanvas {
  position: absolute;
  transition: 500ms all;
  cursor: grab;
}

.bar {
  color: white;
  position: fixed;
  width: 230px;
  background-color: #0000005e;
  padding: 50px 10px;
  z-index: 99;
  backdrop-filter: blur(3px);
  box-shadow: 0 0 10px black;
}
.bar > div {
  margin: 10px 0;
}

.bar .wh-box {
  display: flex;
  align-items: center;
}

.bar .wh-box input {
  width: 80px;
}

.bar .wh-box button {
  width: 50px;
  height: 25px;
  margin-left: 20px;
}

.image {
  width: 100%;
  position: absolute;
  bottom: 0;
  left: 0;
}
#proportion:after{
  content: "%";
}

@media screen and (max-height: 600px) {
  .canvas-box {
    padding: 20px
  }
}
